import request from '@/utils/request'

/**
 * @description 获取员工列表
 * @param {*} param {page当前页,size每页条数}
 * @return {*}
 */
export function getEmployeeList(page, size) {
  return request({
    methods: 'get',
    url: '/sys/user',
    params: { page, size }
  })
}

/**
 * @description: 添加员工
 * @param {*} id 员工id
 */

export function delEmployee(id) {
  return request({
    method: 'delete',
    url: `/sys/user/${id}`
  })
}
